import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import biaoqian from '@/components/biaoqian'
import biaoQianTest from '@/components/biaoQianTest'
// import BS_cgkLogin from '@/components/BS_cgkLogin'
// import BS_cgkRegist from '@/components/BS_cgkRegist'
// import BS_cgkForget from '@/components/BS_cgkForget'
// import BS_cgkHome from '@/components/BS_cgkHome'
// import yw_cgkManage from '@/components/yw_cgkManage/yw_cgkManage'
// import yw_cgkCollect from '@/components/yw_cgkCollect/yw_cgkCollect'
// import yw_cgkAnalyse from '@/components/yw_cgkAnalyse/yw_cgkAnalyse'
// import yw_cgkQuery from '@/components/yw_cgkQuery/yw_cgkQuery'
// import yw_subjectDetail from '@/components/yw_cgksubjectDetail/yw_subjectDetail'
// import city from '@/components/yw_adminEntrance/yw_city/yw_city'
/*管理入口路由*/

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/HelloWorld',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    // {
    //   path: '/',
    //   name: 'biaoQianTest',
    //   component: biaoQianTest
    // },
    // {
    //   path: '/biaoqian',
    //   name: 'biaoqian',
    //   component: biaoqian
    // },
    {path: '/',redirect: "BS_cgkHome"},
    {path: '/BS_cgkLogin', name: 'BS_cgkLogin', component: resolve => require(['@/components/BS_cgkLogin'],resolve) ,meta:{title:'登录',}},
    {path: '/BS_cgkRegist', name: 'BS_cgkRegist', component: resolve => require(['@/components/BS_cgkRegist'],resolve),meta:{title:'注册'}},
    {path: '/BS_cgkForget', name: 'BS_cgkForget', component: resolve => require(['@/components/BS_cgkForget'],resolve),meta:{title:'找回密码'}},
    {path: '/BS_cgkHome', name: 'BS_cgkHome', component: resolve => require(['@/components/BS_cgkHome'],resolve),meta:{title:'首页'}},
    {path: '/yw_cgkManage', name: 'yw_cgkManage', component: resolve => require(['@/components/cgkManage/yw_cgkManage'],resolve),meta:{title:'管理入口'}},
    {path: '/yw_cgkCollect', name: 'yw_cgkCollect', component: resolve => require(['@/components/cgkCollect/yw_cgkCollect'],resolve),meta:{title:'收藏'}},
    {path: '/yw_cgkAnalyse', name: 'yw_cgkAnalyse', component: resolve => require(['@/components/cgkAnalyse/yw_cgkAnalyse'],resolve),meta:{title:'分析'}},
    {path: '/yw_cgkQuery', name: 'yw_cgkQuery', component: resolve => require(['@/components/cgkQuery/yw_cgkQuery'],resolve),meta:{title:'查询'}},
    {path: '/yw_cgkQuery', name: 'yw_cgkQuery', component: resolve => require(['@/components/cgkQuery/yw_cgkCompare'],resolve),meta:{title:'查询'}},
    {path: '/yw_subjectDetail', name: 'yw_subjectDetail', component: resolve => require(['@/components/cgkSubjectDetail/yw_subject-detail'],resolve),meta:{title:'查看课题'},children:[
        {path: '/detailGoTopButton', name: 'detailGoTopButton', component: resolve => require(['@/components/cgkSubjectDetail/detail-goTopButton'],resolve),meta:{title:'detailGoTopButton'}},

      ]},
    {path: '/yw_city', name: 'yw_city', component: resolve => require(['@/components/adminEntrance/city/yw_city'],resolve),meta:{title:'市州管理'}},
    {path: '/yw_province', name: 'yw_province', component: resolve => require(['@/components/adminEntrance/province/yw_province'],resolve),meta:{title:'市州管理'}},
    {path: '/yw_district', name: 'yw_district', component: resolve => require(['@/components/adminEntrance/district/yw_district'],resolve),meta:{title:'市州管理'}},
    {path: '/yw_school', name: 'yw_school', component: resolve => require(['@/components/adminEntrance/school/yw_school'],resolve),meta:{title:'市州管理'}},

  ]
})
